package com.travel.modules.review.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.travel.commons.validator.groups.AddGroup;
import com.travel.commons.validator.groups.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * null
 * @TableName feedback
 */
@Data
@TableName("feedback")
public class Feedback implements Serializable {
    /**
     *
     */
    @TableId
    private Integer id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = {AddGroup.class})
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = {AddGroup.class})
    private String content;

    /**
     * 反馈类型
     */
    private Integer status;

    /**
     * 用户id
     */
    private Integer userId;
    @TableField(exist = false)
    private String username;

    /**
     * 联系方式
     */
    private String contact;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 处理时间
     */
    private Date dealTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table feedback
     */
    private static final long serialVersionUID = 1L;
}